package com.sw.fileServer.utils;

public class OSUtils {
    private static String OS = System.getProperty("os.name").toLowerCase();

    public static boolean isLinux(){
        return OS.indexOf("linux")>=0;
    }

    public static boolean isMacOSX(){
        return OS.indexOf("mac")>=0&&OS.indexOf("os")>0&&OS.indexOf("x")>0;
    }

    public static boolean isWindows(){
        return OS.indexOf("windows")>=0;
    }

//    public static void main(String[] args){
//        System.out.println(isLinux());
//        System.out.println(isMacOSX());
//        System.out.println(isWindows());
//    }

}
